home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OpenGL Superbible (2nd Edition)
/
OpenGL SuperBible e2.iso
/
tools
/
GLUT-3.7
/
PROGS
/
DEMOS
/
YACME
/
mallocbis.h
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1998-08-12
|
212 b
|
14 lines
#define newItem(item,list,type)\
if (list == NULL)\
item = (type *) malloc(sizeof(type));\
else\
{\
item = list;\
list = list->next;\
}
#define freeItem(item,list)\
item->next = list;\
list = item;